//
//  RW_SetupModel.m
//  Yule
//
//  Created by 王亮 on 2021/1/22.
//  Copyright © 2021 Yule.dating. All rights reserved.
//

#import "RW_SetupModel.h"

@implementation RW_SetupModel
/**
 */
-(NSString *)showTitle{
    if (!_showTitle){
        switch (self.type) {
            case Setup_Cell_Type_Clean:
                _showTitle = @"清理图片缓存";
                break;
            case Setup_Cell_Type_Privacy:
                _showTitle = @"隐私协议";
                break;
            case Setup_Cell_Type_Protocol:
                _showTitle = @"用户协议";
                break;
            case Setup_Cell_Type_Copyright:
                _showTitle = @"内容版权";
                break;
            case Setup_Cell_Type_About:
                _showTitle = @"关于我";
                break;
            case Setup_Cell_Type_Login_Out:
                _showTitle = @"退出登录";
                break;
            default:
                _showTitle = @"";
                break;
        }
    }
    return _showTitle;
}


-(NSString *)showDesc{
    if (!_showDesc){
        switch (self.type) {
            case Setup_Cell_Type_Clean:
                _showDesc = [NSString stringWithFormat:@"%.2f MB",[[SDImageCache sharedImageCache] totalDiskSize]/1024.f/1024.f];
                break;
            default:
                _showDesc = @"";
                break;
        }
    }
    return _showDesc;
}

@end
